/*********************************************************
          File Name:16.16.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun 13 Dec 2015 12:05:33 PM CST
**********************************************************/

#include "16.16.h"
#include <iostream>
#include <string>

int main(void)
{
        Vec<int> vi;
        Vec<std::string> vs;

        vi.push_back(1);
        vi.push_back(2);
        vi.push_back(3);

        for(auto &x: vi)
                std::cout << x << std::endl;

        vs.push_back("1");
        vs.push_back("2");
        vs.push_back("3");

        for(auto &x: vs)
                std::cout << x << std::endl;

        std::cout << "vi: size -> " << vi.size() << "\tcapacity -> "
                << vi.capacity() << std::endl;

        std::cout << "vs: size -> " << vs.size() << "\tcapacity -> "
                << vs.capacity() << std::endl;

        return 0;
}
